package com.hqyj.cl.service;

import com.github.pagehelper.PageInfo;
import com.hqyj.cl.pojo.User;

import java.util.Map;

public interface UserService {
    //login
    String login(String username, String password);

    //    selectAllUser
    PageInfo<User> selectAllUser(int pageNum, int pageSize);


    Map<String, String> deleteUserById(int id);

    PageInfo<User> selectUserByUserName(int pageNum, int pageSize, String username);

    Map<String, String> updateUserByUsername(User user);

    //    adduser
    Map<String, String> addUser(User user);

    Map<String, String> checkUsername(String username);
}
